package com.ctg.payroll2.service.empadmin;

import java.sql.SQLException;
import java.util.Map;

import com.ctg.payroll2.bean.filter.empadmin.CsEmpDimissionFilter;
import com.ctg.payroll2.bean.po.CsEmpDimission;
import com.ctg.platform.util.Page;

public interface CsEmpDimissionService {
	/**
	 * 翻页查询
	 * @param filter 查询条件
	 * @return 翻页结果
	 */
	Page queryEmpDimissionPageByFilter(CsEmpDimissionFilter filter);
	/**
	 * 增加一条离退人员
	 * @param csEmpDimission 离退人员
	 * @throws SQLException sql异常
	 */
	void updateDimissionEmployee(CsEmpDimission csEmpDimission) throws SQLException;
	/**
	 * 删除离职人员
	 * @param ids 以逗号分隔的id
	 * @return 影响的记录数
	 * @throws SQLException sql异常
	 */
	int deleteEmpDimission(String ids) throws SQLException;
	
	CsEmpDimission queryById(Long id) throws SQLException;
	
	void updateStatusById(CsEmpDimission csEmpDimission,Map<String, Object> map) throws SQLException;
}
